﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace AnQinFrameWorkAPI.Entity.Blog.Entity;

/// <summary>
///     博客菜单模型
/// </summary>
[Table("BlogMenu")]
public class BlogMenuModel
{
    /// <summary>
    ///     博客菜单id
    /// </summary>
    [Key]
    [MaxLength(36)]
    public Guid Id { get; set; }

    /// <summary>
    ///     博客菜单编码
    /// </summary>
    [MaxLength(50)]
    public string Code { get; set; }

    /// <summary>
    ///     博客菜单名称
    /// </summary>
    [MaxLength(50)]
    public string Name { get; set; }

    /// <summary>
    ///     博客菜单排序
    /// </summary>
    public int? Order { get; set; }

    /// <summary>
    ///     博客菜单图片
    /// </summary>
    public string? Image { get; set; }

    /// <summary>
    ///     创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }
}